package com.njtcedu.microblog.common.entity.dictionary;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
 *  spring social connection data 
 */
@Entity
@Table(name = "userconnection", schema = "microblog")
public class UserConnection implements Serializable{

	@EmbeddedId
	private ArtLinePK id;
	
	@Column(name = "providerUserId", length = 255, nullable = false)
	private String providerUserId;
	
	@Column(name = "displayName", length = 255, nullable = true)
	private String displayName;
	
	@Column(name = "profileUrl", length = 512, nullable = true)
	private String profileUrl;
	
	@Column(name = "imageUrl", length = 512, nullable = true)
	private String imageUrl;
	
	@Column(name = "accessToken", length = 512, nullable = false)
	private String accessToken;
	
	@Column(name = "secret", length = 512, nullable = true)
	private String secret;
	
	@Column(name = "refreshToken", length = 512, nullable = true)
	private String refreshToken;
	
	@Column(name = "expireTime", length = 512, nullable = true)
	private Long expireTime;
	

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getProfileUrl() {
		return profileUrl;
	}

	public void setProfileUrl(String profileUrl) {
		this.profileUrl = profileUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public Long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Long expireTime) {
		this.expireTime = expireTime;
	}

	public ArtLinePK getId() {
		return id;
	}

	public void setId(ArtLinePK id) {
		this.id = id;
	}

	public String getProviderUserId() {
		return providerUserId;
	}

	public void setProviderUserId(String providerUserId) {
		this.providerUserId = providerUserId;
	}
	
}
